home *** CD-ROM | disk | FTP | other *** search
- /* example Prescript script file for TSMorph */
- /* This example is a simple Warp which fades to black */
- /* $VER: FadeToBlack_TSM 2.0 (13.6.93)
- */
- parse arg Base
- Frame = 0
- TotalFrames = 1
- Single = 2
- Movement = 3
- Red1 = 4
- Green1 = 5
- Blue1 = 6
- Red2 = 7
- Green2 = 8
- Blue2 = 9
- Produce = 10
- RPlus = 11
- GPlus = 12
- BPlus = 13
- RMinus = 14
- GMinus = 15
- BMinus = 16
- DX = 17
- DY = 18
- Start = 19
-
- call StoreValue(Base,RMinus,TRUNC(GetValue(Base,Frame)*255/GetValue(Base,TotalFrames)));
- call StoreValue(Base,GMinus,TRUNC(GetValue(Base,Frame)*255/GetValue(Base,TotalFrames)));
- call StoreValue(Base,BMinus,TRUNC(GetValue(Base,Frame)*255/GetValue(Base,TotalFrames)));
-
- exit
-
- GetValue:Procedure
- Parse arg XBase, XAdd
- return C2D(IMPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4)),4))
-
- StoreValue:Procedure
- Parse arg XBase, XAdd, XVal
- call EXPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4)),RIGHT(D2C(XVal),4,D2C(0)),4)
- return
-